﻿<%@ Page Title="Quản lý vai trò" Language="C#" MasterPageFile="~/Admins/MasterAdmin.master" AutoEventWireup="true" CodeFile="Roles.aspx.cs" Inherits="Admins_Roles" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderChangeAdmin" runat="Server">
    <ext:Panel ID="Panel1"
        runat="server"
        AutoHeight="true"
        Title="Quản lý vai trò"
        BodyPadding="5"
        Layout="BorderLayout"
        AutoScroll="true">
        <TopBar>
            <ext:Toolbar runat="server" ID="ToolbarMenu">
                <Items>
                    <ext:Button ID="ToolbarAdd" runat="server" Text="Thêm mới" Icon="Add" />
                    <ext:ToolbarSeparator ID="ToolbarSeparator3" runat="server" />
                    <ext:Button ID="ToolbarHelp" runat="server" Text="Hỗ trợ" Icon="Help" />
                </Items>
            </ext:Toolbar>
        </TopBar>
        <Items>
            <ext:GridPanel ID="GridPanelRoles" runat="server" Title="Danh sách vai trò">
                <Store>
                    <ext:Store ID="StoreRoles" runat="server" PageSize="20">
                        <Model>
                            <ext:Model ID="ModelPost" runat="server" IDProperty="PosID">
                                <Fields>
                                    <ext:ModelField Name="RoleID" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel ID="ColumnModelPost" runat="server">
                    <Columns>
                        <ext:Column ID="Col_RoleID" runat="server" Text="ID" DataIndex="RoleID" />
                    </Columns>
                </ColumnModel>
                <BottomBar>
                    <ext:PagingToolbar ID="PagingToolbarPost" runat="server" StoreID="StorePost" AfterPageText="của {0}"
                        BeforePageText="Trang" DisplayMsg="Hiển thị  {0} - {1} của {2}" EmptyMsg="Chưa có dữ liệu"
                        FirstText="Trang đầu tiên" LastText="Trang cuối cùng" NextText="Trang kế tiếp"
                        PrevText="Trang trước" RefreshText="Làm mới" />
                </BottomBar>
            </ext:GridPanel>
        </Items>
        <BottomBar>
            <ext:StatusBar ID="StatusBar4" CtCls="word-status" runat="server" DefaultText="Ready">
                <Items>
                    <ext:ToolbarFill ID="ToolbarFill1" runat="server" />
                    <ext:ToolbarTextItem ID="wordCount" runat="server" Text="Words: 0" CtCls="x-status-text-panel" />
                    <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server" />
                    <ext:ToolbarTextItem ID="charCount" runat="server" Text="Chars: 0" CtCls="x-status-text-panel" />
                    <ext:ToolbarSeparator ID="ToolbarSeparator2" runat="server" />
                    <ext:ToolbarTextItem ID="clock" runat="server" Text=" " CtCls="x-status-text-panel" />
                </Items>
            </ext:StatusBar>
        </BottomBar>
    </ext:Panel>
</asp:Content>